using System;
using System.Data;
using System.IO;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for bzFile
/// </summary>
public class bzFile
{
    private static string _Prefix = "phatvietexpress_com";
    public static string Prefix { get { return _Prefix; } }
    public static void delete(string sFileName)
    {
        if (sFileName != String.Empty)
        {
            if (File.Exists(sFileName))
                File.Delete(sFileName);
        }
    }
    public static bool Exist(string sPath)
    {
        return File.Exists(sPath);

    }
    public static bool Copy(string sPathFrom, string sPathTo)
    {
        try
        {
            if (File.Exists(sPathFrom))
            {
                if (File.Exists(sPathTo)) return false;
                File.Copy(sPathFrom, sPathTo);
                return true;
            }
            return false;
        }
        catch
        {
            return false;
        }

    }
}
